#!/usr/bin/env python3

from random import randint

class Die():
	
	def __init__(self):
		
		self.sides=6
	def setsides(self,sid):
		self.sides=sid

	def roll_die(self):
		
		while(True):
			sides=input(" your sids")
			if sides=='quit':
				break
			if int(sides)>6 :
				self.sides=6
			elif int(sides)<1:
				self.sides=1
			
			re = randint(1,self.sides)
			print("siddd:",str(re))


if __name__=='__main__':
	
	die=Die()

	die.setsides(4)

	die.roll_die()

